package com.xkdx.guangguang.fragment.user;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class UserUnBindSinaAction extends AbsAction {

	private String userID, loginToken, sinaWeiboUserID;

	public UserUnBindSinaAction(String userID, String loginToken,
			String sinaWeiboUserID) {
		this.userID = userID;
		this.loginToken = loginToken;
		this.sinaWeiboUserID = sinaWeiboUserID;

	}

	@Override
	public void constructRequest() {

		HashMap<String, String> sinaloginmap = new HashMap<String, String>();
		sinaloginmap.put("DeviceID", "2");
		sinaloginmap.put("UserID", userID);
		sinaloginmap.put("LoginToken", loginToken);
		sinaloginmap.put("SinaWeiboUserID", sinaWeiboUserID);

		String loginJson = constructJson(sinaloginmap);

		Parameter parameter = new Parameter("userInterface", "unbindSinaWeibo",
				loginJson);
		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);

		requestData = constructMod(list);
	}

}
